Skip to content
Snippets Groups Projects
Verified Commit 707ea1de authored by Timm Fitschen's avatar Timm Fitschen
Browse files

REVIEW: removed Switch

parent a8008554
No related branches found
No related tags found
1 merge request!4ENH: Allow insertion and deletion of single entities
Pipeline #11283 passed
Pipeline: caosdb-cppinttest

#11284

    This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
    ......@@ -450,7 +450,6 @@ public:
    auto AppendProperty(const Property &property) -> void;
    auto AppendParent(const Parent &parent) -> void;
    auto Switch(ProtoEntity *entity) -> void;
    /**
    * Copy all of this entity's features to the target ProtoEntity.
    */
    ......
    ......@@ -177,13 +177,6 @@ auto Entity::SetVersionId(const std::string &id) -> void {
    this->wrapped->mutable_version()->set_id(id);
    }
    // TODO(tf) Re-implement s.th. properties and parents are kept.
    auto Entity::Switch(ProtoEntity *entity) -> void {
    this->wrapped->Swap(entity);
    this->wrapped->Clear();
    this->wrapped = entity;
    }
    auto Entity::CopyTo(ProtoEntity *target) -> void {
    target->CopyFrom(*(this->wrapped));
    }
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment