diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-08 20:51:21 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-08 20:51:21 +0000 |
commit | e617a31ce690976e4d73316b4c0c3d0550745475 (patch) | |
tree | 1760f11db94773c9fd5ad196f834db0aaeb8ce04 | |
parent | 8c373ff16ce620316116327790d25fe3623c81e3 (diff) | |
download | chromium_src-e617a31ce690976e4d73316b4c0c3d0550745475.zip chromium_src-e617a31ce690976e4d73316b4c0c3d0550745475.tar.gz chromium_src-e617a31ce690976e4d73316b4c0c3d0550745475.tar.bz2 |
Remove unused static function
Review URL: http://codereview.chromium.org/6216
Patch from icefox.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3044 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/glue/SConscript | 2 | ||||
-rw-r--r-- | webkit/glue/editor_client_impl.cc | 13 |
2 files changed, 2 insertions, 13 deletions
diff --git a/webkit/glue/SConscript b/webkit/glue/SConscript index 88093aa..82ea125 100644 --- a/webkit/glue/SConscript +++ b/webkit/glue/SConscript @@ -18,6 +18,7 @@ if env['PLATFORM'] == 'win32': ) input_files = [ + 'editor_client_impl.cc', 'glue_util.cc', 'image_decoder.cc', 'webkit_glue.cc', @@ -43,7 +44,6 @@ if env['PLATFORM'] == 'win32': 'dom_operations.cc', 'dom_serializer.cc', 'dragclient_impl.cc', - 'editor_client_impl.cc', 'entity_map.cc', 'event_conversion.cc', 'feed_preview.cc', diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc index a3f10e8..ca8f372 100644 --- a/webkit/glue/editor_client_impl.cc +++ b/webkit/glue/editor_client_impl.cc @@ -37,7 +37,7 @@ // unbounded memory. This is the maximum number of distinct undoable // actions -- unbroken stretches of typed characters are coalesced // into a single action. -static const int kMaximumUndoStackDepth = 1000; +static const size_t kMaximumUndoStackDepth = 1000; namespace { @@ -338,17 +338,6 @@ void EditorClientImpl::redo() { } } -// Get the distance we should go (in pixels) when doing a pageup/pagedown. -static int GetVerticalPageDistance(WebCore::KeyboardEvent* event) { - if (event->target()) { - WebCore::Node* node = event->target()->toNode(); - if (node && node->renderer()) - return node->renderer()->contentHeight(); - } - - return 0; -} - // The below code was adapted from the WebKit file webview.cpp // provided by Apple, Inc, and is subject to the following copyright // notice and disclaimer. |