Commit e9d3133f authored by Paweł Wegner's avatar Paweł Wegner
Browse files

Removed IItem::copy.

parent f1115689
......@@ -44,7 +44,6 @@ class IItem {
virtual std::string url() const = 0;
virtual bool is_hidden() const = 0;
virtual FileType type() const = 0;
virtual IItem::Pointer copy() const = 0;
};
} // namespace cloudstorage
......
......@@ -41,15 +41,6 @@ std::string Item::id() const { return id_; }
bool Item::is_directory() const { return type() == FileType::Directory; }
IItem::Pointer Item::copy() const {
Item::Pointer item = make_unique<Item>(filename(), id(), type());
item->set_url(url());
item->set_thumbnail_url(thumbnail_url());
item->set_hidden(is_hidden());
item->set_type(type());
return item;
}
std::string Item::url() const { return url_; }
void Item::set_url(std::string url) { url_ = url; }
......
......@@ -38,7 +38,6 @@ class Item : public IItem {
std::string filename() const;
std::string id() const;
bool is_directory() const;
IItem::Pointer copy() const;
std::string url() const;
void set_url(std::string);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment