Skip to content

Commit

Permalink
Merge pull request #3158 from MirServer/drop-dead-code
Browse files Browse the repository at this point in the history
We don't use gflags, drop the dependency
  • Loading branch information
Saviq authored Dec 4, 2023
2 parents 395f56d + 15a4063 commit e9ac33e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ endif()
pkg_check_modules(DRM REQUIRED IMPORTED_TARGET libdrm)
pkg_check_modules(EGL REQUIRED IMPORTED_TARGET egl)
pkg_check_modules(EPOXY REQUIRED IMPORTED_TARGET epoxy)
pkg_check_modules(GFlags REQUIRED IMPORTED_TARGET gflags)
pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0 gio-unix-2.0)
pkg_check_modules(GLESv2 REQUIRED IMPORTED_TARGET glesv2)
pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)
Expand Down
1 change: 0 additions & 1 deletion doc/sphinx/.readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ build:
- libglib2.0-dev
- libgles2-mesa-dev
- libglm-dev
- libgflags-dev
- libgoogle-glog-dev
- libinput-dev
- liblttng-ust-dev
Expand Down
1 change: 0 additions & 1 deletion examples/mir_demo_server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ target_link_libraries(mir_demo_server
example-shell-lib
exampleserverconfig
PkgConfig::GLog
PkgConfig::GFlags
Boost::system
)
10 changes: 0 additions & 10 deletions examples/mir_demo_server/glog_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "glog_logger.h"

#include <glog/logging.h>
#include <gflags/gflags.h>

#include <mutex>

Expand All @@ -27,7 +26,6 @@ namespace
{
std::once_flag init_flag;
std::once_flag shutdown_flag;
std::once_flag shutdown_flag_gflags;

struct google_glog_guard_t
{
Expand All @@ -41,14 +39,6 @@ struct google_glog_guard_t
std::call_once(shutdown_flag, google::ShutdownGoogleLogging);
}
};

struct google_gflag_guard_t
{
~google_gflag_guard_t()
{
std::call_once(shutdown_flag_gflags, google::ShutDownCommandLineFlags);
}
} google_gflag_guard;
}


Expand Down
1 change: 0 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ parts:
- libevdev2
- libfreetype6
- libgbm1
- libgflags2.2
- libgles2
- libglibmm-2.4-1v5
- libglvnd0
Expand Down
1 change: 0 additions & 1 deletion spread/build/fedora/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ execute: |
mesa-libGLES-devel \
glm-devel \
glog-devel \
gflags-devel \
systemd-devel \
glib2-devel \
wayland-devel \
Expand Down

0 comments on commit e9ac33e

Please sign in to comment.