Skip to content

Commit 36cccf5

Browse files
committed
refactor(util): remove old UFCS branch
1 parent 2db6c00 commit 36cccf5

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

include/cpp2util.h

-14
Original file line numberDiff line numberDiff line change
@@ -799,24 +799,10 @@ class out {
799799
} \
800800
}
801801

802-
#if 1 // When not rebasing, enable this branch.
803802
#define CPP2_UFCS(...) CPP2_UFCS_(&,,__VA_ARGS__)
804803
#define CPP2_UFCS_TEMPLATE(...) CPP2_UFCS_(&,template,__VA_ARGS__)
805804
#define CPP2_UFCS_NONLOCAL(...) CPP2_UFCS_(,,__VA_ARGS__)
806805
#define CPP2_UFCS_TEMPLATE_NONLOCAL(...) CPP2_UFCS_(,template,__VA_ARGS__)
807-
#else // When rebasing, enable this branch.
808-
// `git restore --staged` and `git restore` conflicting sources.
809-
// Compile `cppfront`. Regenerate conflicting sources. Disable this branch. Complete rebase.
810-
#define CPP2_UFCS_REMPARENS(...) __VA_ARGS__
811-
#define CPP2_UFCS(FUNCNAME,PARAM1,...) CPP2_UFCS_(&,,FUNCNAME)(PARAM1,__VA_ARGS__)
812-
#define CPP2_UFCS_0(FUNCNAME,PARAM1) CPP2_UFCS_(&,,FUNCNAME)(PARAM1)
813-
#define CPP2_UFCS_TEMPLATE(FUNCNAME,TEMPARGS,PARAM1,...) CPP2_UFCS_(&,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1,__VA_ARGS__)
814-
#define CPP2_UFCS_TEMPLATE_0(FUNCNAME,TEMPARGS,PARAM1) CPP2_UFCS_(&,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1)
815-
#define CPP2_UFCS_NONLOCAL(FUNCNAME,PARAM1,...) CPP2_UFCS_(,,FUNCNAME)(PARAM1,__VA_ARGS__)
816-
#define CPP2_UFCS_0_NONLOCAL(FUNCNAME,PARAM1) CPP2_UFCS_(,,FUNCNAME)(PARAM1)
817-
#define CPP2_UFCS_TEMPLATE_NONLOCAL(FUNCNAME,TEMPARGS,PARAM1,...) CPP2_UFCS_(,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1,__VA_ARGS__)
818-
#define CPP2_UFCS_TEMPLATE_0_NONLOCAL(FUNCNAME,TEMPARGS,PARAM1) CPP2_UFCS_(,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1)
819-
#endif
820806

821807

822808
//-----------------------------------------------------------------------

0 commit comments

Comments
 (0)