diff options
author | costan <costan@google.com> | 2018-03-12 09:14:44 -0700 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2018-03-12 09:24:48 -0700 |
commit | aece2068d7375f987685b8b145288c5557f9ce50 (patch) | |
tree | e0a0f3b5d8c961572e8222344dbb64e43c1e217e /db/version_set.h | |
parent | ddab751002588fe58955357d68d12b062e038d0d (diff) | |
download | leveldb-aece2068d7375f987685b8b145288c5557f9ce50.tar.gz |
Remove extern from function declarations.
External linkage is the default for function declarations in C++.
This also fixes ClangTidy errors generated by removing the "extern"
keyword as described above.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188730416
Diffstat (limited to 'db/version_set.h')
-rw-r--r-- | db/version_set.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/db/version_set.h b/db/version_set.h index c4e7ac3..80d448a 100644 --- a/db/version_set.h +++ b/db/version_set.h @@ -39,9 +39,9 @@ class WritableFile; // Return the smallest index i such that files[i]->largest >= key. // Return files.size() if there is no such file. // REQUIRES: "files" contains a sorted list of non-overlapping files. -extern int FindFile(const InternalKeyComparator& icmp, - const std::vector<FileMetaData*>& files, - const Slice& key); +int FindFile(const InternalKeyComparator& icmp, + const std::vector<FileMetaData*>& files, + const Slice& key); // Returns true iff some file in "files" overlaps the user key range // [*smallest,*largest]. @@ -49,12 +49,11 @@ extern int FindFile(const InternalKeyComparator& icmp, // largest==NULL represents a key largest than all keys in the DB. // REQUIRES: If disjoint_sorted_files, files[] contains disjoint ranges // in sorted order. -extern bool SomeFileOverlapsRange( - const InternalKeyComparator& icmp, - bool disjoint_sorted_files, - const std::vector<FileMetaData*>& files, - const Slice* smallest_user_key, - const Slice* largest_user_key); +bool SomeFileOverlapsRange(const InternalKeyComparator& icmp, + bool disjoint_sorted_files, + const std::vector<FileMetaData*>& files, + const Slice* smallest_user_key, + const Slice* largest_user_key); class Version { public: |