summaryrefslogtreecommitdiffstats
path: root/src/Resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Resource.cpp')
-rw-r--r--src/Resource.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Resource.cpp b/src/Resource.cpp
index eef5e063..f1cb12a1 100644
--- a/src/Resource.cpp
+++ b/src/Resource.cpp
@@ -211,14 +211,9 @@ Resource::remove_properties(const Properties& props)
Resource::Properties
Resource::properties(Resource::Graph ctx) const
{
- if (ctx == Resource::Graph::DEFAULT) {
- return properties();
- }
-
Properties props;
for (const auto& p : _properties) {
- if (p.second.context() == Resource::Graph::DEFAULT
- || p.second.context() == ctx) {
+ if (p.second.context() == ctx) {
props.insert(make_pair(p.first, p.second));
}
}