mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-16 19:48:18 +00:00
remove unused functions
This commit is contained in:
parent
5cd78b5bfb
commit
e8ea88b69a
@ -119,7 +119,7 @@ void nsGCCache::Flush(unsigned long flags)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GdkGC *nsGCCache::GetGCFromDW(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags, GdkRegion *clipRegion)
|
GdkGC *nsGCCache::GetGC(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags, GdkRegion *clipRegion)
|
||||||
{
|
{
|
||||||
|
|
||||||
PRCList *iter;
|
PRCList *iter;
|
||||||
|
@ -55,15 +55,7 @@ class nsGCCache
|
|||||||
|
|
||||||
void Flush(unsigned long flags);
|
void Flush(unsigned long flags);
|
||||||
|
|
||||||
GdkGC *GetGCFromDW(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags, GdkRegion *clipRegion);
|
GdkGC *GetGC(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags, GdkRegion *clipRegion);
|
||||||
|
|
||||||
GdkGC *GetClipGC(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags, GdkRegion *clipRegion) {
|
|
||||||
return GetGCFromDW(window, gcv, flags, clipRegion);
|
|
||||||
}
|
|
||||||
|
|
||||||
GdkGC *GetGC(GdkWindow *window, GdkGCValues *gcv, GdkGCValuesMask flags) {
|
|
||||||
return GetGCFromDW(window, gcv, flags, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PRCList GCCache;
|
PRCList GCCache;
|
||||||
|
@ -505,10 +505,10 @@ void nsRenderingContextGTK::UpdateGC()
|
|||||||
mClipRegion->GetNativeRegion((void*&)rgn);
|
mClipRegion->GetNativeRegion((void*&)rgn);
|
||||||
}
|
}
|
||||||
|
|
||||||
mGC = gcCache.GetClipGC(mSurface->GetDrawable(),
|
mGC = gcCache.GetGC(mSurface->GetDrawable(),
|
||||||
&values,
|
&values,
|
||||||
valuesMask,
|
valuesMask,
|
||||||
rgn);
|
rgn);
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP nsRenderingContextGTK::SetClipRegion(const nsIRegion& aRegion,
|
NS_IMETHODIMP nsRenderingContextGTK::SetClipRegion(const nsIRegion& aRegion,
|
||||||
|
Loading…
Reference in New Issue
Block a user