uppsrc: Various minor fixes (thanks mrped)

This commit is contained in:
Mirek Fidler 2022-12-11 11:15:52 +01:00
parent febbbf7f8b
commit 075b16fcd9
8 changed files with 1 additions and 14 deletions

View file

@ -342,7 +342,6 @@ void Ctrl::IMCommit(GtkIMContext *context, gchar *str, gpointer user_data)
void Ctrl::IMLocation(Ctrl *w)
{
if(w && w->HasFocusDeep() && focusCtrl && !IsNull(focusCtrl->GetPreedit())) {
GdkRectangle r;
Rect e = w->GetPreeditScreenRect();
Rect q = w->GetScreenRect();
GdkRectangle gr;

View file

@ -68,7 +68,7 @@ void PopUpList::SetLineCy(int ii, int cy)
{
ASSERT(cy >= 0 && cy < 32000);
word& x = lineinfo.At(ii, 0x7fff);
x = x & 0x8000 | cy;
x = (x & 0x8000) | cy;
if(popup)
popup->ac.SetLineCy(ii, cy);
}

View file

@ -64,7 +64,6 @@ int ScrollBar::ButtonCount() const
}
void ScrollBar::Layout() {
Size sz = GetSize();
Set(pagepos);
Refresh();
}

View file

@ -257,7 +257,6 @@ int RichTxt::GetPos(int x, PageY y, RichContext rc) const
RichHotPos RichTxt::GetHotPos(int x, PageY y, int tolerance, RichContext rc) const
{
int parti = 0;
int pos = 0;
int ti = 0;
if(part.GetCount()) {
while(parti < part.GetCount()) {
@ -274,7 +273,6 @@ RichHotPos RichTxt::GetHotPos(int x, PageY y, int tolerance, RichContext rc) con
}
if(IsTable(parti))
ti += 1 + GetTable(parti).GetTableCount();
pos += GetPartLength(parti) + 1;
parti++;
rc = next;
}

View file

@ -74,7 +74,6 @@ Size SplashCtrl::MakeLogo(Ctrl& parent, Array<Ctrl>& ctrl)
Label& v1 = ctrl.Create<Label>();
l.SetImage(logo);
Size sz = Size(isz.cx, isz.cy/* + 80*/);
int total = 0;
Index<String> classes;
Index<String> items;

View file

@ -161,10 +161,6 @@ String NaturalDeQtf(const char *s) {
return String(r);
}
static int sSplitT(int c) {
return c == ';' || c == '<' || c == '>' || c == ',';
}
String TopicEditor::GetLang() const
{
int q = topicpath.ReverseFind('@');

View file

@ -404,7 +404,6 @@ void Indexer::SchedulerThread()
return job;
};
int blitz_index = 0;
int c_blitz_index = 0;
for(const auto& pf : pkg.value) {
FileAnnotation0 f;
{

View file

@ -81,7 +81,6 @@ String CleanupId(const char *s)
return memcmp(s, "operator", 8) == 0;
};
const char *b = s;
String id;
while(iscid(*s) || *s == ':') {
id.Cat(*s++);
@ -94,8 +93,6 @@ String CleanupId(const char *s)
break;
}
SkipT(); // Skip template arguments like in Foo<Bar>::Method() -> Foo::Method
b = s;
}
}
if(id == s_attribute) {