Remove some unused private fields.
This commit is contained in:
parent
826ba49660
commit
284fe8be53
@ -57,7 +57,6 @@ class FileDownloadManager final : public Actor {
|
||||
struct Node {
|
||||
QueryId query_id_;
|
||||
ActorOwn<FileLoaderActor> loader_;
|
||||
ResourceState resource_state_;
|
||||
};
|
||||
using NodeId = uint64;
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
#pragma once
|
||||
|
||||
#include "td/telegram/files/FileLoader.h"
|
||||
#include "td/telegram/files/FileLoaderActor.h"
|
||||
#include "td/telegram/files/FileLocation.h"
|
||||
#include "td/telegram/files/FileType.h"
|
||||
|
||||
@ -14,10 +14,10 @@
|
||||
|
||||
#include "td/utils/buffer.h"
|
||||
#include "td/utils/common.h"
|
||||
#include "td/utils/port/FileFd.h"
|
||||
#include "td/utils/Status.h"
|
||||
|
||||
namespace td {
|
||||
|
||||
class FileFromBytes final : public FileLoaderActor {
|
||||
public:
|
||||
class Callback {
|
||||
@ -41,15 +41,16 @@ class FileFromBytes final : public FileLoaderActor {
|
||||
|
||||
unique_ptr<Callback> callback_;
|
||||
|
||||
FileFd fd_;
|
||||
string path_;
|
||||
|
||||
void wakeup() final;
|
||||
|
||||
void set_resource_manager(ActorShared<ResourceManager>) final {
|
||||
}
|
||||
|
||||
void update_priority(int8 priority) final {
|
||||
}
|
||||
|
||||
void update_resources(const ResourceState &other) final {
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace td
|
||||
|
@ -44,6 +44,7 @@ class FileHashUploader final : public FileLoaderActor {
|
||||
void update_priority(int8 priority) final {
|
||||
send_closure(resource_manager_, &ResourceManager::update_priority, priority);
|
||||
}
|
||||
|
||||
void update_resources(const ResourceState &other) final {
|
||||
if (stop_flag_) {
|
||||
return;
|
||||
|
@ -54,7 +54,6 @@ class FileUploadManager final : public Actor {
|
||||
struct Node {
|
||||
QueryId query_id_;
|
||||
ActorOwn<FileLoaderActor> loader_;
|
||||
ResourceState resource_state_;
|
||||
};
|
||||
using NodeId = uint64;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user