[Libreoffice-commits] online.git: kit/Kit.cpp
Henry Castro
hcastro at collabora.com
Sat Jan 20 20:42:07 UTC 2018
kit/Kit.cpp | 21 ---------------------
1 file changed, 21 deletions(-)
New commits:
commit 90cd7791fa9088d0f7e2e09fceac13db20274e59
Author: Henry Castro <hcastro at collabora.com>
Date: Sat Jan 20 16:30:33 2018 -0400
kit: remove unused debug code
Change-Id: Ibd69a2b451be0a075759524acff5f0e9fc820d05
diff --git a/kit/Kit.cpp b/kit/Kit.cpp
index d3ac6bc9..4d054427 100644
--- a/kit/Kit.cpp
+++ b/kit/Kit.cpp
@@ -2246,27 +2246,6 @@ void lokit_main(const std::string& childRoot,
return TerminationFlag.load();
});
-#if 0
- std::string uri = "file://$HOME/docs/basic-presentation.pptx";
- std::shared_ptr<lok::Document> loKitDoc;
-
- const auto flags = LOK_FEATURE_DOCUMENT_PASSWORD
- | LOK_FEATURE_DOCUMENT_PASSWORD_TO_MODIFY
- | LOK_FEATURE_PART_IN_INVALIDATION_CALLBACK
- | LOK_FEATURE_NO_TILED_ANNOTATIONS
- | LOK_FEATURE_RANGE_HEADERS;
- loKit->setOptionalFeatures(flags);
- loKitDoc.reset(loKit->documentLoad(uri.c_str()));
- if (!loKitDoc || !loKitDoc->get())
- {
- LOG_ERR("Failed to load: " << uri << ", error: " << loKit->getError());
- std::_Exit(Application::EXIT_OK);
- }
-
- // specific case to debug
- // ...
-#endif
-
// Let forkit handle the jail cleanup.
}
catch (const Exception& exc)
More information about the Libreoffice-commits
mailing list