Remove legacy LogInterface::append method.

GitOrigin-RevId: 36869b2f405ed9af7b97845285d336b6dce1b480
This commit is contained in:
levlam 2020-08-02 05:14:08 +03:00
parent 462197e260
commit f7011a3853
2 changed files with 4 additions and 9 deletions

View File

@ -40,9 +40,6 @@ class TsFileLog : public LogInterface {
return res;
}
void append(CSlice cslice) override {
return append(cslice, -1);
}
void append(CSlice cslice, int log_level) override {
get_current_logger()->append(cslice, log_level);
}

View File

@ -182,14 +182,12 @@ class LogInterface {
LogInterface(LogInterface &&) = delete;
LogInterface &operator=(LogInterface &&) = delete;
virtual ~LogInterface() = default;
virtual void append(CSlice slice) {
append(slice, -1);
}
virtual void append(CSlice slice, int /*log_level*/) {
append(slice);
}
virtual void append(CSlice slice, int log_level) = 0;
virtual void rotate() {
}
virtual vector<string> get_file_paths() {
return {};
}