Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(544)

Unified Diff: Source/core/editing/EditCommand.cpp

Issue 928103002: Remove some unused functions in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl try Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/EditCommand.h ('k') | Source/core/events/EventListenerMap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/EditCommand.cpp
diff --git a/Source/core/editing/EditCommand.cpp b/Source/core/editing/EditCommand.cpp
index 0953c4e60639a24362aea6b9295ea6ac0b9be1a9..6fc9c6917fe17a39efbf0e980654bbf9f911e63c 100644
--- a/Source/core/editing/EditCommand.cpp
+++ b/Source/core/editing/EditCommand.cpp
@@ -44,16 +44,6 @@ EditCommand::EditCommand(Document& document)
setEndingSelection(m_startingSelection);
}
-EditCommand::EditCommand(Document* document, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection)
- : m_document(document)
- , m_parent(nullptr)
-{
- ASSERT(m_document);
- ASSERT(m_document->frame());
- setStartingSelection(startingSelection);
- setEndingSelection(endingSelection);
-}
-
EditCommand::~EditCommand()
{
}
@@ -83,11 +73,6 @@ void EditCommand::setStartingSelection(const VisibleSelection& selection)
}
}
-void EditCommand::setStartingSelection(const VisiblePosition& position)
-{
- setStartingSelection(VisibleSelection(position));
-}
-
void EditCommand::setEndingSelection(const VisibleSelection& selection)
{
for (EditCommand* command = this; command; command = command->m_parent) {
« no previous file with comments | « Source/core/editing/EditCommand.h ('k') | Source/core/events/EventListenerMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698