Skip to content

Commit a0f7a74

Browse files
committed
refactor(util): remove old UFCS branch
1 parent 3292dc3 commit a0f7a74

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

include/cpp2util.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -727,24 +727,10 @@ class out {
727727
} \
728728
}
729729

730-
#if 1 // When not rebasing, enable this branch.
731730
#define CPP2_UFCS(...) CPP2_UFCS_(&,,__VA_ARGS__)
732731
#define CPP2_UFCS_TEMPLATE(...) CPP2_UFCS_(&,template,__VA_ARGS__)
733732
#define CPP2_UFCS_NONLOCAL(...) CPP2_UFCS_(,,__VA_ARGS__)
734733
#define CPP2_UFCS_TEMPLATE_NONLOCAL(...) CPP2_UFCS_(,template,__VA_ARGS__)
735-
#else // When rebasing, enable this branch.
736-
// `git restore --staged` and `git restore` conflicting sources.
737-
// Compile `cppfront`. Regenerate conflicting sources. Disable this branch. Complete rebase.
738-
#define CPP2_UFCS_REMPARENS(...) __VA_ARGS__
739-
#define CPP2_UFCS(FUNCNAME,PARAM1,...) CPP2_UFCS_(&,,FUNCNAME)(PARAM1,__VA_ARGS__)
740-
#define CPP2_UFCS_0(FUNCNAME,PARAM1) CPP2_UFCS_(&,,FUNCNAME)(PARAM1)
741-
#define CPP2_UFCS_TEMPLATE(FUNCNAME,TEMPARGS,PARAM1,...) CPP2_UFCS_(&,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1,__VA_ARGS__)
742-
#define CPP2_UFCS_TEMPLATE_0(FUNCNAME,TEMPARGS,PARAM1) CPP2_UFCS_(&,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1)
743-
#define CPP2_UFCS_NONLOCAL(FUNCNAME,PARAM1,...) CPP2_UFCS_(,,FUNCNAME)(PARAM1,__VA_ARGS__)
744-
#define CPP2_UFCS_0_NONLOCAL(FUNCNAME,PARAM1) CPP2_UFCS_(,,FUNCNAME)(PARAM1)
745-
#define CPP2_UFCS_TEMPLATE_NONLOCAL(FUNCNAME,TEMPARGS,PARAM1,...) CPP2_UFCS_(,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1,__VA_ARGS__)
746-
#define CPP2_UFCS_TEMPLATE_0_NONLOCAL(FUNCNAME,TEMPARGS,PARAM1) CPP2_UFCS_(,template,FUNCNAME CPP2_UFCS_REMPARENS TEMPARGS)(PARAM1)
747-
#endif
748734

749735

750736
//-----------------------------------------------------------------------

0 commit comments

Comments
 (0)