Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
df395f44
Commit
df395f44
authored
Nov 20, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
placement: Remove unused function
parent
3df79855
Changes
2
Hide whitespace changes
Inline
Side-by-side
placement.cpp
View file @
df395f44
...
...
@@ -639,31 +639,6 @@ void Placement::unclutterDesktop()
#endif
Placement
::
Policy
Placement
::
policyFromString
(
const
QString
&
policy
,
bool
no_special
)
{
if
(
policy
==
QStringLiteral
(
"NoPlacement"
))
return
NoPlacement
;
else
if
(
policy
==
QStringLiteral
(
"Default"
)
&&
!
no_special
)
return
Default
;
else
if
(
policy
==
QStringLiteral
(
"Random"
))
return
Random
;
else
if
(
policy
==
QStringLiteral
(
"Cascade"
))
return
Cascade
;
else
if
(
policy
==
QStringLiteral
(
"Centered"
))
return
Centered
;
else
if
(
policy
==
QStringLiteral
(
"ZeroCornered"
))
return
ZeroCornered
;
else
if
(
policy
==
QStringLiteral
(
"UnderMouse"
))
return
UnderMouse
;
else
if
(
policy
==
QStringLiteral
(
"OnMainWindow"
)
&&
!
no_special
)
return
OnMainWindow
;
else
if
(
policy
==
QStringLiteral
(
"Maximizing"
))
return
Maximizing
;
else
return
Smart
;
}
const
char
*
Placement
::
policyToString
(
Policy
policy
)
{
const
char
*
const
policies
[]
=
{
...
...
placement.h
View file @
df395f44
...
...
@@ -73,7 +73,6 @@ public:
*/
void
unclutterDesktop
();
static
Policy
policyFromString
(
const
QString
&
policy
,
bool
no_special
);
static
const
char
*
policyToString
(
Policy
policy
);
private:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment