summaryrefslogtreecommitdiffstats
path: root/src/helper/action-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/action-context.cpp')
-rw-r--r--src/helper/action-context.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/helper/action-context.cpp b/src/helper/action-context.cpp
index 648101540..36b6914d6 100644
--- a/src/helper/action-context.cpp
+++ b/src/helper/action-context.cpp
@@ -62,11 +62,6 @@ UI::View::View *ActionContext::getView() const
SPDesktop *ActionContext::getDesktop() const
{
- // TODO: this slightly horrible storage of a UI::View::View*, and
- // casting to an SPDesktop*, is only done because that's what was
- // already the norm in the Inkscape codebase. This seems wrong. Surely
- // we should store an SPDesktop* in the first place? Is there a case
- // of actions being carried out on a View that is not an SPDesktop?
return static_cast<SPDesktop *>(_view);
}