Remove some unused code

This commit is contained in:
Jacob Dufault 2017-04-23 13:02:41 -07:00
parent f94d963c64
commit 4f57b711bb

View File

@ -76,9 +76,6 @@ std::vector<std::string> kEmptyArgs;
struct IpcManager { struct IpcManager {
static constexpr const char* kIpcLanguageClientName = "lanclient";
static constexpr const int kQueueSizeBytes = 1024 * 8;
static IpcManager* instance_; static IpcManager* instance_;
static IpcManager* instance() { static IpcManager* instance() {
return instance_; return instance_;
@ -211,19 +208,6 @@ QueryFile* FindFile(QueryDatabase* db, const std::string& filename) {
return nullptr; return nullptr;
} }
optional<QueryFile>* GetQuery(QueryDatabase* db, const QueryFileId& id) {
return &db->files[id.id];
}
optional<QueryType>* GetQuery(QueryDatabase* db, const QueryTypeId& id) {
return &db->types[id.id];
}
optional<QueryFunc>* GetQuery(QueryDatabase* db, const QueryFuncId& id) {
return &db->funcs[id.id];
}
optional<QueryVar>* GetQuery(QueryDatabase* db, const QueryVarId& id) {
return &db->vars[id.id];
}
optional<QueryLocation> GetDefinitionSpellingOfSymbol(QueryDatabase* db, const QueryTypeId& id) { optional<QueryLocation> GetDefinitionSpellingOfSymbol(QueryDatabase* db, const QueryTypeId& id) {
@ -719,36 +703,6 @@ std::vector<SymbolRef> FindSymbolsAtLocation(WorkingFile* working_file, QueryFil
return symbols; return symbols;
} }
} // namespace
@ -855,6 +809,84 @@ void RegisterMessageTypes() {
} // namespace