mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 18:00:26 +00:00
remove some default ctors
This commit is contained in:
parent
590797bcf2
commit
3368065d94
@ -78,11 +78,9 @@ std::vector<Usr> MapIdToUsr(const IdCache& id_cache, const std::vector<IndexVarI
|
||||
std::vector<UsrRef> MapIdToUsr(const IdCache& id_cache, const std::vector<FuncRef>& ids) {
|
||||
return Transform<FuncRef, UsrRef>(ids, [&](FuncRef ref) {
|
||||
assert(id_cache.func_id_to_usr.find(ref.id) != id_cache.func_id_to_usr.end());
|
||||
|
||||
UsrRef result;
|
||||
result.loc = MapIdToUsr(id_cache, ref.loc);
|
||||
result.usr = id_cache.func_id_to_usr.find(ref.id)->second;
|
||||
return result;
|
||||
return UsrRef(
|
||||
id_cache.func_id_to_usr.find(ref.id)->second /*usr*/,
|
||||
MapIdToUsr(id_cache, ref.loc) /*loc*/);
|
||||
});
|
||||
}
|
||||
std::vector<QueryableLocation> MapIdToUsr(const IdCache& id_cache, const std::vector<Range>& ids) {
|
||||
|
@ -22,8 +22,6 @@ struct QueryableLocation {
|
||||
Usr path;
|
||||
Range range;
|
||||
|
||||
QueryableLocation()
|
||||
: path("") {}
|
||||
QueryableLocation(Usr path, Range range)
|
||||
: path(path), range(range) {}
|
||||
|
||||
@ -51,7 +49,6 @@ struct UsrRef {
|
||||
Usr usr;
|
||||
QueryableLocation loc;
|
||||
|
||||
UsrRef() {}
|
||||
UsrRef(Usr usr, QueryableLocation loc) : usr(usr), loc(loc) {}
|
||||
|
||||
bool operator==(const UsrRef& other) const {
|
||||
|
Loading…
Reference in New Issue
Block a user