Merge lp:~jpakkane/unity-api/removenc into lp:unity-api

Proposed by Jussi Pakkanen
Status: Merged
Approved by: Michi Henning
Approved revision: 119
Merged at revision: 118
Proposed branch: lp:~jpakkane/unity-api/removenc
Merge into: lp:unity-api
Diff against target: 61 lines (+0/-35)
2 files modified
include/unity/util/NonCopyable.h (+0/-33)
test/gtest/unity/util/DefinesPtrs/DefinesPtrs_test.cpp (+0/-2)
To merge this branch: bzr merge lp:~jpakkane/unity-api/removenc
Reviewer Review Type Date Requested Status
Michi Henning (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+199793@code.launchpad.net

Commit message

Remove deprecated NonCopyable base class.

Description of the change

Remove deprecated NonCopyable base class.

No ABI change because the only user was unity-scopes-api and that has transitioned.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
lp:~jpakkane/unity-api/removenc updated
119. By Jussi Pakkanen

X

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michi Henning (michihenning) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'include/unity/util/NonCopyable.h'
2--- include/unity/util/NonCopyable.h 2013-12-13 12:04:56 +0000
3+++ include/unity/util/NonCopyable.h 2013-12-20 15:25:39 +0000
4@@ -33,15 +33,6 @@
5
6 #include <unity/SymbolExport.h>
7
8-namespace unity
9-{
10-
11-namespace util
12-{
13-
14-namespace NonCopyable_ // Prevent unintended ADL
15-{
16-
17 /**
18 \brief Helper macro to prevent a class from being copied.
19
20@@ -61,28 +52,4 @@
21
22 #define NONCOPYABLE(ClassName) /** Deleted */ ClassName(ClassName const&) = delete; /** Deleted */ ClassName& operator=(ClassName const&) = delete;
23
24-/**
25- * This class is deprecated and will go away before 14/04 freeze. Use the NONCOPYABLE macro instead or
26- * write your own =delete declarations.
27- */
28-
29-class UNITY_API NonCopyable
30-{
31-protected:
32- NonCopyable() = default;
33- ~NonCopyable() = default;
34-
35-private:
36- NonCopyable(NonCopyable const&) = delete;
37- NonCopyable& operator=(NonCopyable const&) = delete;
38-} __attribute__((deprecated));
39-
40-} // namespace NonCopyable_
41-
42-typedef NonCopyable_::NonCopyable NonCopyable __attribute__((deprecated));
43-
44-} // namespace util
45-
46-} // namespace unity
47-
48 #endif
49
50=== modified file 'test/gtest/unity/util/DefinesPtrs/DefinesPtrs_test.cpp'
51--- test/gtest/unity/util/DefinesPtrs/DefinesPtrs_test.cpp 2013-12-13 12:04:56 +0000
52+++ test/gtest/unity/util/DefinesPtrs/DefinesPtrs_test.cpp 2013-12-20 15:25:39 +0000
53@@ -21,8 +21,6 @@
54
55 #include <gtest/gtest.h>
56
57-using namespace unity::util;
58-
59 class MyClass
60 {
61 public:

Subscribers

People subscribed via source and target branches

to all changes: