Mir

Merge lp:~alan-griffiths/mir/tidy-code into lp:mir

Proposed by Alan Griffiths
Status: Merged
Merged at revision: 4097
Proposed branch: lp:~alan-griffiths/mir/tidy-code
Merge into: lp:mir
Prerequisite: lp:~alan-griffiths/mir/tidy_code
Diff against target: 466 lines (+3/-233)
19 files modified
src/client/CMakeLists.txt (+0/-1)
src/client/buffer_stream.cpp (+0/-6)
src/client/buffer_stream.h (+0/-3)
src/client/error_chain.cpp (+0/-63)
src/client/error_chain.h (+0/-51)
src/client/input/input_event.cpp (+0/-7)
src/client/mir_connection.cpp (+0/-1)
src/client/presentation_chain.h (+1/-4)
src/client/symbols.map (+2/-22)
src/include/common/mir/input/android/event_conversion_helpers.h (+0/-60)
src/platforms/android/client/buffer.h (+0/-3)
src/platforms/android/server/platform.h (+0/-1)
src/platforms/evdev/libinput_device.h (+0/-2)
src/platforms/evdev/platform.h (+0/-3)
src/server/input/config_changer.cpp (+0/-1)
src/server/input/default_device.h (+0/-1)
src/server/input/default_input_device_hub.h (+0/-1)
src/server/scene/surface_stack.h (+0/-2)
tests/unit-tests/frontend/stress_protobuf_communicator.cpp (+0/-1)
To merge this branch: bzr merge lp:~alan-griffiths/mir/tidy-code
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
Chris Halse Rogers Approve
Kevin DuBois (community) Approve
Mir CI Bot continuous-integration Approve
Review via email: mp+320338@code.launchpad.net

Commit message

Delete unused code

To post a comment you must log in.
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

PASSED: Continuous integration, rev:4109
https://mir-jenkins.ubuntu.com/job/mir-ci/3196/
Executed test runs:
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-mir/4297
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-0-fetch/4384
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/4374
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/4374
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=zesty/4374
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/4324
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=zesty/4324/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/4324
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/4324/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/4324
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=zesty/4324/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=android,release=vivid+overlay/4324
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=android,release=vivid+overlay/4324/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/4324
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/4324/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/4324
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/4324/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://mir-jenkins.ubuntu.com/job/mir-ci/3196/rebuild

review: Approve (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :

sure

review: Approve
Revision history for this message
Chris Halse Rogers (raof) wrote :

Seems sensible.

review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/client/CMakeLists.txt'
--- src/client/CMakeLists.txt 2017-03-17 16:43:10 +0000
+++ src/client/CMakeLists.txt 2017-03-20 12:15:49 +0000
@@ -82,7 +82,6 @@
82 mir_buffer_stream_api.cpp82 mir_buffer_stream_api.cpp
83 error_stream.cpp83 error_stream.cpp
84 error_render_surface.cpp84 error_render_surface.cpp
85 error_chain.cpp
86 buffer.cpp85 buffer.cpp
87 error_buffer.cpp86 error_buffer.cpp
88 mir_render_surface_api.cpp87 mir_render_surface_api.cpp
8988
=== modified file 'src/client/buffer_stream.cpp'
--- src/client/buffer_stream.cpp 2017-03-10 19:47:57 +0000
+++ src/client/buffer_stream.cpp 2017-03-20 12:15:49 +0000
@@ -408,12 +408,6 @@
408 return static_cast<EGLNativeWindowType>(egl_native_window_.get());408 return static_cast<EGLNativeWindowType>(egl_native_window_.get());
409}409}
410410
411void mcl::BufferStream::release_cpu_region()
412{
413 std::unique_lock<decltype(mutex)> lock(mutex);
414 secured_region.reset();
415}
416
417std::shared_ptr<mcl::MemoryRegion> mcl::BufferStream::secure_for_cpu_write()411std::shared_ptr<mcl::MemoryRegion> mcl::BufferStream::secure_for_cpu_write()
418{412{
419 auto buffer = get_current_buffer();413 auto buffer = get_current_buffer();
420414
=== modified file 'src/client/buffer_stream.h'
--- src/client/buffer_stream.h 2017-03-10 19:47:57 +0000
+++ src/client/buffer_stream.h 2017-03-20 12:15:49 +0000
@@ -141,10 +141,7 @@
141private:141private:
142 void process_buffer(protobuf::Buffer const& buffer);142 void process_buffer(protobuf::Buffer const& buffer);
143 void process_buffer(protobuf::Buffer const& buffer, std::unique_lock<std::mutex>&);143 void process_buffer(protobuf::Buffer const& buffer, std::unique_lock<std::mutex>&);
144 void on_scale_set(float scale);
145 void release_cpu_region();
146 MirWaitHandle* set_server_swap_interval(int i);144 MirWaitHandle* set_server_swap_interval(int i);
147 void init_swap_interval();
148 void wait_for_vsync();145 void wait_for_vsync();
149146
150 mutable std::mutex mutex; // Protects all members of *this147 mutable std::mutex mutex; // Protects all members of *this
151148
=== removed file 'src/client/error_chain.cpp'
--- src/client/error_chain.cpp 2017-01-18 02:29:37 +0000
+++ src/client/error_chain.cpp 1970-01-01 00:00:00 +0000
@@ -1,63 +0,0 @@
1/*
2 * Copyright © 2016 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License version 3,
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authored by: Kevin DuBois <kevin.dubois@canonical.com>
17 */
18
19#include "error_chain.h"
20#include <boost/throw_exception.hpp>
21
22namespace mcl = mir::client;
23namespace geom = mir::geometry;
24
25mcl::ErrorChain::ErrorChain(
26 MirConnection* connection,
27 int id,
28 std::string const& error_msg) :
29 connection_(connection),
30 stream_id(id),
31 error(error_msg)
32{
33}
34
35char const* mcl::ErrorChain::error_msg() const
36{
37 return error.c_str();
38}
39
40MirConnection* mcl::ErrorChain::connection() const
41{
42 return connection_;
43}
44
45int mcl::ErrorChain::rpc_id() const
46{
47 return stream_id;
48}
49
50void mcl::ErrorChain::submit_buffer(MirBuffer*)
51{
52 BOOST_THROW_EXCEPTION(std::logic_error("Cannot submit: invalid MirPresentationChain"));
53}
54
55void mcl::ErrorChain::set_queueing_mode()
56{
57 BOOST_THROW_EXCEPTION(std::logic_error("Cannot set mode: invalid MirPresentationChain"));
58}
59
60void mcl::ErrorChain::set_dropping_mode()
61{
62 BOOST_THROW_EXCEPTION(std::logic_error("Cannot set mode: invalid MirPresentationChain"));
63}
640
=== removed file 'src/client/error_chain.h'
--- src/client/error_chain.h 2017-01-18 02:29:37 +0000
+++ src/client/error_chain.h 1970-01-01 00:00:00 +0000
@@ -1,51 +0,0 @@
1/*
2 * Copyright © 2016 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License version 3 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authored by: Kevin DuBois <kevin.dubois@canonical.com>
17 */
18
19#ifndef MIR_CLIENT_ERROR_CHAIN_H
20#define MIR_CLIENT_ERROR_CHAIN_H
21
22#include "mir_presentation_chain.h"
23#include <memory>
24
25namespace mir
26{
27namespace client
28{
29
30class ErrorChain : public MirPresentationChain
31{
32public:
33 ErrorChain(
34 MirConnection* connection,
35 int id,
36 std::string const& error_msg);
37 void submit_buffer(MirBuffer* buffer) override;
38 MirConnection* connection() const override;
39 int rpc_id() const override;
40 char const* error_msg() const override;
41 void set_dropping_mode() override;
42 void set_queueing_mode() override;
43private:
44 MirConnection* const connection_;
45 int const stream_id;
46 std::string const error;
47};
48
49}
50}
51#endif /* MIR_CLIENT_ERROR_CHAIN_H */
520
=== modified file 'src/client/input/input_event.cpp'
--- src/client/input/input_event.cpp 2017-02-17 08:46:05 +0000
+++ src/client/input/input_event.cpp 2017-03-20 12:15:49 +0000
@@ -73,13 +73,6 @@
73 return ev->input_type();73 return ev->input_type();
74})74})
7575
76int mir_input_event_get_window_id(MirInputEvent const* ev) MIR_HANDLE_EVENT_EXCEPTION(
77{
78 expect_event_type(ev, mir_event_type_input);
79
80 return ev->window_id();
81})
82
83MirInputDeviceId mir_input_event_get_device_id(MirInputEvent const* ev) MIR_HANDLE_EVENT_EXCEPTION(76MirInputDeviceId mir_input_event_get_device_id(MirInputEvent const* ev) MIR_HANDLE_EVENT_EXCEPTION(
84{77{
85 expect_event_type(ev, mir_event_type_input);78 expect_event_type(ev, mir_event_type_input);
8679
=== modified file 'src/client/mir_connection.cpp'
--- src/client/mir_connection.cpp 2017-03-14 04:41:33 +0000
+++ src/client/mir_connection.cpp 2017-03-20 12:15:49 +0000
@@ -40,7 +40,6 @@
40#include "render_surface.h"40#include "render_surface.h"
41#include "error_render_surface.h"41#include "error_render_surface.h"
42#include "presentation_chain.h"42#include "presentation_chain.h"
43#include "error_chain.h"
44#include "logging/perf_report.h"43#include "logging/perf_report.h"
45#include "lttng/perf_report.h"44#include "lttng/perf_report.h"
46#include "buffer_factory.h"45#include "buffer_factory.h"
4746
=== modified file 'src/client/presentation_chain.h'
--- src/client/presentation_chain.h 2017-01-18 02:29:37 +0000
+++ src/client/presentation_chain.h 2017-03-20 12:15:49 +0000
@@ -25,7 +25,7 @@
25#include "mir_toolkit/mir_presentation_chain.h"25#include "mir_toolkit/mir_presentation_chain.h"
26#include "mir_protobuf.pb.h"26#include "mir_protobuf.pb.h"
27#include "buffer.h"27#include "buffer.h"
28#include <mutex>28
29#include <memory>29#include <memory>
3030
31namespace mir31namespace mir
@@ -65,9 +65,6 @@
65 std::shared_ptr<AsyncBufferFactory> const mir_buffer_factory;65 std::shared_ptr<AsyncBufferFactory> const mir_buffer_factory;
6666
67 BufferStreamConfiguration interval_config;67 BufferStreamConfiguration interval_config;
68
69 std::mutex mutex;
70 std::vector<std::unique_ptr<Buffer>> buffers;
71};68};
72}69}
73}70}
7471
=== modified file 'src/client/symbols.map'
--- src/client/symbols.map 2017-03-20 12:15:49 +0000
+++ src/client/symbols.map 2017-03-20 12:15:49 +0000
@@ -302,19 +302,6 @@
302 extern "C++" { 302 extern "C++" {
303 mir::events::make_event*;303 mir::events::make_event*;
304 mir::events::add_touch*;304 mir::events::add_touch*;
305 mir::input::android::Lexicon::translate*;
306 mir::input::android::android_modifiers_from_mir*;
307 mir::input::android::mir_modifiers_from_android*;
308 mir::input::android::mir_keyboard_action_from_android*;
309 mir::input::android::android_keyboard_action_from_mir*;
310 mir::input::android::mir_pointer_buttons_from_android*;
311 mir::input::android::android_pointer_buttons_from_mir*;
312 mir::input::android::mir_tool_type_from_android*;
313 mir::input::android::android_tool_type_from_mir*;
314 mir::input::android::mir_pointer_action_from_masked_android*;
315 mir::input::android::mir_touch_action_from_masked_android*;
316 mir::input::android::android_source_id_is_pointer_device*;
317 mir::input::android::extract_android_action_from*;
318 mir::client::DefaultConnectionConfiguration::DefaultConnectionConfiguration*;305 mir::client::DefaultConnectionConfiguration::DefaultConnectionConfiguration*;
319 mir::client::DefaultConnectionConfiguration::the_surface_map*;306 mir::client::DefaultConnectionConfiguration::the_surface_map*;
320 mir::client::DefaultConnectionConfiguration::the_rpc_channel*;307 mir::client::DefaultConnectionConfiguration::the_rpc_channel*;
@@ -344,19 +331,12 @@
344 };331 };
345} MIR_CLIENT_DETAIL_9;332} MIR_CLIENT_DETAIL_9;
346333
347MIR_CLIENT_DETAIL_9v19 {
348 global:
349 extern "C++" {
350 mir::input::android::android_pointer_action_from_mir*;
351 };
352} MIR_CLIENT_DETAIL_9v18;
353
354MIR_CLIENT_DETAIL_0.21 {334MIR_CLIENT_DETAIL_0.21 {
355 global:335 global:
356 extern "C++" { 336 extern "C++" {
357 mir::client::DefaultConnectionConfiguration::the_buffer_factory*;337 mir::client::DefaultConnectionConfiguration::the_buffer_factory*;
358 };338 };
359} MIR_CLIENT_DETAIL_9v19;339} MIR_CLIENT_DETAIL_9v18;
360340
361MIR_CLIENT_DETAIL_private_buffer_semantics {341MIR_CLIENT_DETAIL_private_buffer_semantics {
362 global:342 global:
@@ -385,7 +365,7 @@
385 mir_presentation_chain_set_dropping_mode;365 mir_presentation_chain_set_dropping_mode;
386 local:366 local:
387 *;367 *;
388} MIR_CLIENT_DETAIL_9v19;368} MIR_CLIENT_DETAIL_9v18;
389369
390MIR_CLIENT_DETAIL_0.24 {370MIR_CLIENT_DETAIL_0.24 {
391 global:371 global:
392372
=== removed file 'src/include/common/mir/input/android/event_conversion_helpers.h'
--- src/include/common/mir/input/android/event_conversion_helpers.h 2015-06-18 02:46:16 +0000
+++ src/include/common/mir/input/android/event_conversion_helpers.h 1970-01-01 00:00:00 +0000
@@ -1,60 +0,0 @@
1/*
2 * Copyright © 2015 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License version 3,
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authored by: Robert Carr <robert.carr@canonical.com>
17 */
18
19#ifndef MIR_INPUT_EVENT_CONVERSION_HELPERS_H_
20#define MIR_INPUT_EVENT_CONVERSION_HELPERS_H_
21
22#include "mir_toolkit/event.h"
23
24namespace mir
25{
26namespace input
27{
28namespace android
29{
30MirInputEventModifiers mir_modifiers_from_android(int32_t android_modifiers);
31int32_t android_modifiers_from_mir(MirInputEventModifiers modifiers);
32
33MirKeyboardAction mir_keyboard_action_from_android(int32_t android_action, int32_t repeat_count);
34// Mir differentiates between mir_keyboard_action_down
35// and mir_keyboard_action_repeat whereas android encodes
36// keyrepeats as AKEY_EVENT_ACTION_DOWN and a repeatCount of > 0
37// Thus when converting from MirKeyboardAction to an android
38// action we must also fetch a repeat count for the android event.
39int32_t android_keyboard_action_from_mir(int32_t& repeat_count_out, MirKeyboardAction action);
40
41MirPointerButtons mir_pointer_buttons_from_android(int32_t android_state);
42int32_t android_pointer_buttons_from_mir(MirPointerButtons buttons);
43
44MirTouchTooltype mir_tool_type_from_android(int32_t android_tooltype);
45int32_t android_tool_type_from_mir(MirTouchTooltype mir_tooltype);
46
47MirPointerAction mir_pointer_action_from_masked_android(int32_t android_action);
48MirTouchAction mir_touch_action_from_masked_android(int32_t android_action);
49
50bool android_source_id_is_pointer_device(int32_t source_id);
51
52int32_t android_pointer_action_from_mir(MirPointerAction action, MirPointerButtons buttons_pressed);
53int32_t extract_masked_android_action_from(MirEvent const& ev);
54int32_t extract_android_action_from(MirEvent const& ev);
55
56}
57}
58}
59
60#endif // MIR_INPUT_EVENT_CONVERSION_HELPERS_H_
610
=== modified file 'src/platforms/android/client/buffer.h'
--- src/platforms/android/client/buffer.h 2017-01-18 02:29:37 +0000
+++ src/platforms/android/client/buffer.h 2017-03-20 12:15:49 +0000
@@ -56,10 +56,7 @@
56 Buffer(const Buffer&) = delete;56 Buffer(const Buffer&) = delete;
57 Buffer& operator=(const Buffer&) = delete;57 Buffer& operator=(const Buffer&) = delete;
58private:58private:
59 void pack_native_window_buffer();
6059
61 mir::Fd mutable api_user_fence;
62
63 std::shared_ptr<BufferRegistrar> const buffer_registrar;60 std::shared_ptr<BufferRegistrar> const buffer_registrar;
64 std::shared_ptr<graphics::android::NativeBuffer> const native_buffer;61 std::shared_ptr<graphics::android::NativeBuffer> const native_buffer;
65 MirPixelFormat const buffer_pf;62 MirPixelFormat const buffer_pf;
6663
=== modified file 'src/platforms/android/server/platform.h'
--- src/platforms/android/server/platform.h 2017-03-15 11:22:17 +0000
+++ src/platforms/android/server/platform.h 2017-03-20 12:15:49 +0000
@@ -64,7 +64,6 @@
64 std::shared_ptr<graphics::GraphicBufferAllocator> const buffer_allocator;64 std::shared_ptr<graphics::GraphicBufferAllocator> const buffer_allocator;
65 std::shared_ptr<DisplayComponentFactory> const display_buffer_builder;65 std::shared_ptr<DisplayComponentFactory> const display_buffer_builder;
66 std::shared_ptr<DisplayReport> const display_report;66 std::shared_ptr<DisplayReport> const display_report;
67 std::shared_ptr<PlatformIpcOperations> const ipc_operations;
68 std::shared_ptr<DeviceQuirks> const quirks;67 std::shared_ptr<DeviceQuirks> const quirks;
69 std::shared_ptr<NativeWindowReport> const native_window_report;68 std::shared_ptr<NativeWindowReport> const native_window_report;
70 OverlayOptimization const overlay_option;69 OverlayOptimization const overlay_option;
7170
=== modified file 'src/platforms/evdev/libinput_device.h'
--- src/platforms/evdev/libinput_device.h 2017-03-14 02:26:28 +0000
+++ src/platforms/evdev/libinput_device.h 2017-03-20 12:15:49 +0000
@@ -82,9 +82,7 @@
82 OutputInfo get_output_info() const;82 OutputInfo get_output_info() const;
8383
84 std::shared_ptr<InputReport> report;84 std::shared_ptr<InputReport> report;
85 std::shared_ptr<::libinput> lib;
86 std::vector<LibInputDevicePtr> devices;85 std::vector<LibInputDevicePtr> devices;
87 std::shared_ptr<dispatch::Dispatchable> dispatchable_fd;
8886
89 InputSink* sink{nullptr};87 InputSink* sink{nullptr};
90 EventBuilder* builder{nullptr};88 EventBuilder* builder{nullptr};
9189
=== modified file 'src/platforms/evdev/platform.h'
--- src/platforms/evdev/platform.h 2017-02-15 07:38:33 +0000
+++ src/platforms/evdev/platform.h 2017-03-20 12:15:49 +0000
@@ -64,13 +64,10 @@
64 void continue_after_config() override;64 void continue_after_config() override;
6565
66private:66private:
67 void scan_for_devices();
68 void device_added(libinput_device* dev);67 void device_added(libinput_device* dev);
69 void device_removed(libinput_device* dev);68 void device_removed(libinput_device* dev);
70 void process_input_events();69 void process_input_events();
7170
72 std::shared_ptr<LibInputDevice> create_device(udev::Device const& dev) const;
73
74 std::shared_ptr<InputReport> const report;71 std::shared_ptr<InputReport> const report;
75 std::shared_ptr<udev::Context> const udev_context;72 std::shared_ptr<udev::Context> const udev_context;
76 std::shared_ptr<InputDeviceRegistry> const input_device_registry;73 std::shared_ptr<InputDeviceRegistry> const input_device_registry;
7774
=== modified file 'src/server/input/config_changer.cpp'
--- src/server/input/config_changer.cpp 2017-02-28 08:53:57 +0000
+++ src/server/input/config_changer.cpp 2017-03-20 12:15:49 +0000
@@ -136,7 +136,6 @@
136 mi::ConfigChanger& config_changer;136 mi::ConfigChanger& config_changer;
137 std::vector<std::shared_ptr<mi::Device>> added;137 std::vector<std::shared_ptr<mi::Device>> added;
138 std::vector<MirInputDeviceId> removed;138 std::vector<MirInputDeviceId> removed;
139 bool devices_changed;
140};139};
141140
142}141}
143142
=== modified file 'src/server/input/default_device.h'
--- src/server/input/default_device.h 2017-02-28 08:53:57 +0000
+++ src/server/input/default_device.h 2017-03-20 12:15:49 +0000
@@ -72,7 +72,6 @@
72 optional_value<MirTouchscreenConfig> touchscreen_configuration() const override;72 optional_value<MirTouchscreenConfig> touchscreen_configuration() const override;
73 void apply_touchscreen_configuration(MirTouchscreenConfig const&) override;73 void apply_touchscreen_configuration(MirTouchscreenConfig const&) override;
74private:74private:
75 void wake_hub_for_device_change();
76 MirInputDeviceId const device_id;75 MirInputDeviceId const device_id;
77 InputDevice& device;76 InputDevice& device;
78 InputDeviceInfo const info;77 InputDeviceInfo const info;
7978
=== modified file 'src/server/input/default_input_device_hub.h'
--- src/server/input/default_input_device_hub.h 2017-03-14 02:26:28 +0000
+++ src/server/input/default_input_device_hub.h 2017-03-20 12:15:49 +0000
@@ -80,7 +80,6 @@
8080
8181
82private:82private:
83 void update_spots();
84 void add_device_handle(std::shared_ptr<DefaultDevice> const& handle);83 void add_device_handle(std::shared_ptr<DefaultDevice> const& handle);
85 void remove_device_handle(MirInputDeviceId id);84 void remove_device_handle(MirInputDeviceId id);
86 void device_changed(Device* dev);85 void device_changed(Device* dev);
8786
=== modified file 'src/server/scene/surface_stack.h'
--- src/server/scene/surface_stack.h 2016-01-29 08:18:22 +0000
+++ src/server/scene/surface_stack.h 2017-03-20 12:15:49 +0000
@@ -45,7 +45,6 @@
45/// classes) and controller (SurfaceController) elements of an MVC design.45/// classes) and controller (SurfaceController) elements of an MVC design.
46namespace scene46namespace scene
47{47{
48class InputRegistrar;
49class BasicSurface;48class BasicSurface;
50class SceneReport;49class SceneReport;
51class RenderingTracker;50class RenderingTracker;
@@ -110,7 +109,6 @@
110109
111 RecursiveReadWriteMutex mutable guard;110 RecursiveReadWriteMutex mutable guard;
112111
113 std::shared_ptr<InputRegistrar> const input_registrar;
114 std::shared_ptr<SceneReport> const report;112 std::shared_ptr<SceneReport> const report;
115113
116 std::vector<std::shared_ptr<Surface>> surfaces;114 std::vector<std::shared_ptr<Surface>> surfaces;
117115
=== modified file 'tests/unit-tests/frontend/stress_protobuf_communicator.cpp'
--- tests/unit-tests/frontend/stress_protobuf_communicator.cpp 2017-01-18 02:29:37 +0000
+++ tests/unit-tests/frontend/stress_protobuf_communicator.cpp 2017-03-20 12:15:49 +0000
@@ -65,7 +65,6 @@
65 mir::protobuf::SurfaceParameters surface_parameters;65 mir::protobuf::SurfaceParameters surface_parameters;
66 mir::protobuf::Surface surface;66 mir::protobuf::Surface surface;
67 mir::protobuf::Void ignored;67 mir::protobuf::Void ignored;
68 mir::protobuf::Connection connection;
6968
70 void create_surface_done();69 void create_surface_done();
71 void submit_buffer_done();70 void submit_buffer_done();

Subscribers

People subscribed via source and target branches