diff options
author | Chris Craik <ccraik@google.com> | 2012-02-28 11:10:33 -0800 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2012-02-28 11:47:06 -0800 |
commit | 894aaa1bd5446eebf8169efa1998fbe6964c18d0 (patch) | |
tree | 1f85c05e1e6fab20dbdf7a61bec3ea6d09edd44f /Source/WebKit/android/jni | |
parent | 7adab1830575d4438d058b5d7f6e932e97451c56 (diff) | |
download | external_webkit-894aaa1bd5446eebf8169efa1998fbe6964c18d0.zip external_webkit-894aaa1bd5446eebf8169efa1998fbe6964c18d0.tar.gz external_webkit-894aaa1bd5446eebf8169efa1998fbe6964c18d0.tar.bz2 |
removed unused vars/functions
Change-Id: I07ab8c6e7ea1c15181eaaa936968b60f6cdd69a4
Diffstat (limited to 'Source/WebKit/android/jni')
-rw-r--r-- | Source/WebKit/android/jni/WebViewCore.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp index e300976..32befc7 100644 --- a/Source/WebKit/android/jni/WebViewCore.cpp +++ b/Source/WebKit/android/jni/WebViewCore.cpp @@ -772,8 +772,6 @@ SkPicture* WebViewCore::rebuildPicture(const SkIRect& inval) void WebViewCore::rebuildPictureSet(PictureSet* pictureSet) { - WebCore::FrameView* view = m_mainFrame->view(); - #ifdef FAST_PICTURESET WTF::Vector<Bucket*>* buckets = pictureSet->bucketsToUpdate(); @@ -996,15 +994,6 @@ void WebViewCore::offInvalidate(const WebCore::IntRect &r) contentInvalidate(r); } -static int pin_pos(int x, int width, int targetWidth) -{ - if (x + width > targetWidth) - x = targetWidth - width; - if (x < 0) - x = 0; - return x; -} - void WebViewCore::didFirstLayout() { ALOG_ASSERT(m_javaGlue->m_obj, "A Java widget was not associated with this view bridge!"); @@ -1152,7 +1141,6 @@ void WebViewCore::setSizeScreenWidthAndScale(int width, int height, int osw = m_screenWidth; int osh = m_screenHeight; int otw = m_textWrapWidth; - float oldScale = m_scale; m_screenWidth = screenWidth; m_screenHeight = screenHeight; m_textWrapWidth = textWrapWidth; @@ -2128,7 +2116,6 @@ void WebViewCore::setSelection(int start, int end) control->selectionChanged(true); } client->setUiGeneratedSelectionChange(false); - WebCore::Frame* focusedFrame = focus->document()->frame(); bool isPasswordField = false; if (focus->isElementNode()) { WebCore::Element* element = static_cast<WebCore::Element*>(focus); @@ -3024,7 +3011,6 @@ bool WebViewCore::key(const PlatformKeyboardEvent& event) WebCore::Node* focusNode = currentFocus(); if (focusNode) { WebCore::Frame* frame = focusNode->document()->frame(); - WebFrame* webFrame = WebFrame::getWebFrame(frame); eventHandler = frame->eventHandler(); VisibleSelection old = frame->selection()->selection(); EditorClientAndroid* client = static_cast<EditorClientAndroid*>( @@ -4045,7 +4031,6 @@ Vector<VisibleSelection> WebViewCore::getTextRanges( } Position nextRangeStart = start; Position previousRangeEnd; - int i = 0; do { VisibleSelection selection(nextRangeStart, end); ranges.append(selection); @@ -4084,7 +4069,6 @@ void WebViewCore::insertText(const WTF::String &text) return; Document* document = focus->document(); - Frame* frame = document->frame(); EditorClientAndroid* client = static_cast<EditorClientAndroid*>( m_mainFrame->editor()->client()); @@ -4795,7 +4779,6 @@ static jobject HitTest(JNIEnv* env, jobject obj, jint nativeClass, jint x, WebViewCore* viewImpl = reinterpret_cast<WebViewCore*>(nativeClass); if (!viewImpl) return 0; - Node* node = 0; AndroidHitTestResult result = viewImpl->hitTestAtPoint(x, y, slop, doMoveMouse); return result.createJavaObject(env); } |